package com.huatech.model;

/**
 * 请求参数封装基类 分类抽取
 *
 * @author
 */
public class BasePageModel {

	public int page;

	public int rows;

	public final static int pageSize = 20;

	/**
	 * 开始时间
	 */
	public String startTime;
	/**
	 * 结束时间
	 */
	public String endTime;

	public int getRows() {
		return rows < 1 ? 20 : rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public final int getPage() {
		return page < 1 ? 1 : page;
	}

	public final void setPage(int page) {
		this.page = page;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
}